const fs = require('fs');
const util = require('util');
const readAsync = util.promisify(fs.readFile);
async function readFile(){
    try{
        var data =  await readAsync('./package.json');
        data  = JSON.parse(data);
        console.log(data);
    } catch(err){
        console.log(err)
    }
}
console.log(readAsync('./package.json'))
readFile()